﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_OBJECT_ROLE
// * CreateDate    : 2011/8/5 11:33:57
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/5 11:33:57
// * LastChanger   : 2011/8/5 11:33:57
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SecObjectRoleEntity : EntityBase
    {
        public SecObjectRoleTable TableSchema
        {
            get
            {
                return SecObjectRoleTable.Current;
            }
        }

        public SecObjectRoleEntity()
        {

        }

        public SecObjectRoleEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.ObjectId = Convert.ToString(CommonFunctions.ToObject(dr["OBJECT_ID"]));
            this.RoleId = Convert.ToString(CommonFunctions.ToObject(dr["ROLE_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecObjectRoleTable.Current;
            }
        }

        #region Perporty List
        public string ObjectId
        {
            get { return Convert.ToString(GetData(SecObjectRoleTable.C_OBJECT_ID)); }
            set { SetData(SecObjectRoleTable.C_OBJECT_ID, value); }
        }

        public string RoleId
        {
            get { return Convert.ToString(GetData(SecObjectRoleTable.C_ROLE_ID)); }
            set { SetData(SecObjectRoleTable.C_ROLE_ID, value); }
        }

        #endregion
    }


}

